home *** CD-ROM | disk | FTP | other *** search
- //
- // $Id$
- //
- // Module : BigIcon.h
- //
- // Author : James Bish
- //
- // Date : 06/15/93
- //
- // $Log$
- //
- // Copyright (c) Bish Programming 1993 - All Rights Reserved.
- //
-
- //
- // Bitmaps for Visual Basic Toolbar
- //
- #define IDBMP_BIGICON 8000
- #define IDBMP_BIGICONDOWN 8001
- #define IDBMP_BIGICONMONO 8003
- #define IDBMP_BIGICONEGA 8006
-
- #ifndef RC_INVOKED
-
- #ifndef __BIGICON_H__
- #define __BIGICON_H__
-
- #include "mfcvbx.h"
- #include "vbxpw.h"
- #include "mfcdlg.h"
-
- #define OFFSETIN( struct, field) ((USHORT)&(((struct *)0)->field))
-
- typedef struct _tagBigIcon {
- HPIC hpicPict;
- int ShadowWidth;
- COLORREF ShadowColor;
- BOOL About;
- } BigIcon;
-
- typedef BigIcon FAR *LPBIGICON;
-
- #define LpBigIconDEREF(hctl) ((LPBIGICON)VBDerefControl(hctl))
-
- //
- // Property list
- //
- // Define the consecutive indicies for the properties
- //
- #define IPROP_BIGICON_CTLNAME 0
- #define IPROP_BIGICON_INDEX 1
- #define IPROP_BIGICON_LEFT 2
- #define IPROP_BIGICON_TOP 3
- #define IPROP_BIGICON_WIDTH 4
- #define IPROP_BIGICON_HEIGHT 5
- #define IPROP_BIGICON_VISIBLE 6
- #define IPROP_BIGICON_PARENT 7
- #define IPROP_BIGICON_DRAGMODE 8
- #define IPROP_BIGICON_DRAGICON 9
- #define IPROP_BIGICON_TAG 10
- #define IPROP_BIGICON_HWND 11
- #define IPROP_BIGICON_BKCOLOR 12
- #define IPROP_BIGICON_PICT 13
- #define IPROP_BIGICON_SHADOWWIDTH 14
- #define IPROP_BIGICON_SHADOWCOLOR 15
- #define IPROP_BIGICON_ABOUT 16
-
-
- //
- // Event list
- //
- // Define the consecutive indicies for the events
- //
- #define IEVENT_BIGICON_CLICK 0
- #define IEVENT_BIGICON_DRAGDROP 1
- #define IEVENT_BIGICON_DRAGOVER 2
-
- //
- // Class Declarations for the BigIcon Control.
- //
-
- class myPopupWnd : public CVBPopupWnd
- {
- public:
- myPopupWnd();
- myPopupWnd(CVBCtlWnd *pCtl, USHORT iProperty);
-
- void DoPopupDlg();
- };
-
- class myCtlWnd : public CVBCtlWnd
- {
- DECLARE_DYNCREATE(myCtlWnd)
- public:
- myCtlWnd();
-
- myCtlWnd( HWND hWnd );
-
- afx_msg void OnPaint();
- afx_msg void OnNcDestroy();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
-
-
- afx_msg LRESULT OnVBSetProperty(WPARAM wp, LPARAM lp);
- afx_msg LRESULT OnVBCheckProperty(WPARAM wp, LPARAM lp);
- afx_msg LRESULT OnVBInitPropPopup(WPARAM wp, LPARAM lp);
- afx_msg LRESULT OnVBGetPropertyHsz(WPARAM wp, LPARAM lp);
-
- DECLARE_MESSAGE_MAP()
- };
-
-
- class mytestCtlWnd : public CVBCtlWnd
- {
- DECLARE_DYNCREATE(mytestCtlWnd)
- public:
- mytestCtlWnd();
-
- mytestCtlWnd( HWND hWnd );
-
- afx_msg void OnPaint();
- afx_msg void OnNcDestroy();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
-
- DECLARE_MESSAGE_MAP()
- };
-
- class myVBDLL : public CVBDLL
- {
- public:
- int fAboutDlgInUse;
-
- BOOL InitInstance();
- void InitModel();
- };
-
- #endif // __BIGICON_H__
-
- #endif // RC_INVOKED
-
- //---------------------------------------------------------------------------
-